﻿#pragma once

#include <mutex>
#include "Containers/Vector.h"
#include "TextureFormat.h"

class CWriteInTextureCube
{
public:

    bool IsDirty()
    {
        return bDirty;
    }

    //保护所有数据的互斥锁,包括bDirty
    std::mutex Mutex;

    uint32_t Width=0;
    uint32_t Height=0;
    uint32_t Pitch=0;
    ETextureFormat Format;
    TVector<uint8_t> Front;
    TVector<uint8_t> Back;
    TVector<uint8_t> Left;
    TVector<uint8_t> Right;
    TVector<uint8_t> Top;
    TVector<uint8_t> Bottom;
    bool bDirty=false;
};